﻿// EXP0506.cpp : 改写上一题的程序，使用条件运算符代替if else语句。
//

#include <iostream>
#include <string>
#include <vector>
using namespace std;


int main()
{
    vector<string> scores = { "F","D","C","B","A","A+" };
    cout << "输入分数：" << endl;
    int grade;
    while (cin >> grade && grade <= 100)
    {
        grade >= 60?(cout << scores[(grade - 50) / 10] << endl):(cout << scores[0] << endl);
    }
    return 0;
}



